package com.alibaba.ai.controller;

import com.alibaba.ai.service.HotbotService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 王振东
 */
@RestController
@RequestMapping("/index2")
public class HotbotController {
    //小区热搜排行榜
    @Autowired
    private HotbotService hotbotService;
    @GetMapping("/list")
    public String getDate(@RequestParam("eXareaName") String eXareaName, @RequestParam("cCover") String cCover, @RequestParam("cAveragePrice") String cAveragePrice, @RequestParam("cPrice") String cPrice){
        return hotbotService.selectHotbot(eXareaName,cCover,cAveragePrice,cPrice);
    }
}
